﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Tallerista.Domain.Extensions
{
    public static class Extension
    {
        public static bool Between(this DateTime value, DateTime init, DateTime? end)
        {
            return (value >= init) && (value <= ((end.HasValue) ? end.Value : DateTime.MaxValue));
        }
    }
}
